package main

import "fmt"

func main() {

	slice1 := []int{1, 2, 3, 4, 5, 6}
	handlerSlice(&slice1)
	fmt.Println(slice1)
}

func handlerSlice(slice *[]int) {
	*slice = append(*slice, 7, 8)
}
